<?php if ($products || $vouchers) { ?>

	<table class="items">
		
		<?php foreach ($products as $product) { ?>
		<tr>
			<td class="image"><?php if ($product['thumb']) { ?>
				<a href="<?php echo $product['href']; ?>"><img src="<?php echo $product['thumb']; ?>" alt="<?php echo $product['name']; ?>" title="<?php echo $product['name']; ?>" /></a>
				<?php } ?></td>
			<td class="name"><a href="<?php echo $product['href']; ?>"><?php echo $product['name']; ?></a>
				<div>
					<?php foreach ($product['option'] as $option) { ?>
					- <small><?php echo $option['name']; ?> <?php echo $option['value']; ?></small><br />
					<?php } ?>
				</div></td>
			<td class="quantity"><span class="qty"><?php echo $product['quantity']; ?></span></td>
			<td class="total"><?php echo $product['total']; ?></td>
			<td class="remove"><img src="catalog/view/theme/sellegance/images/close.png" alt="<?php echo $button_remove; ?>" title="<?php echo $button_remove; ?>" onclick="(getURLVar('route') == 'checkout/cart' || getURLVar('route') == 'checkout/checkout') ? location = 'index.php?route=checkout/cart&remove=<?php echo $product['key']; ?>' : $('#cart').load('index.php?route=module/cart&remove=<?php echo $product['key']; ?>' + ' #cart > *');" /></td>
		</tr>
		<?php } ?>

		<?php foreach ($vouchers as $voucher) { ?>
		<tr>
			<td class="image"></td>
			<td class="name"><?php echo $voucher['description']; ?></td>
			<td class="quantity">x&nbsp;1</td>
			<td class="total"><?php echo $voucher['amount']; ?></td>
			<td class="remove">
				<img src="catalog/view/theme/sellegance/images/close.png" alt="<?php echo $button_remove; ?>" title="<?php echo $button_remove; ?>" onclick="removeVoucher('<?php echo $voucher['key']; ?>');" />
			</td>
		</tr>
		<?php } ?> 
		
	</table>

	<table class="total">
		<?php foreach ($totals as $total) { ?>
		<tr>
			<td align="right" class="labels"><b><?php echo $total['title']; ?></b></td>
			<td align="right"><?php echo $total['text']; ?></td>
		</tr>
		<?php } ?>
	</table>

<div class="checkout"><a href="<?php echo $cart; ?>"><?php echo $text_cart; ?></a> | <a href="<?php echo $checkout; ?>"><?php echo $text_checkout; ?></a></div>

<?php } else { ?>

	<div class="empty"><span><?php echo $text_empty; ?></span></div>

<?php } ?>